function excuteAjax(request){
	$.ajax({
		'url' : request.url,
		'type' : request.type, //the way you want to send data to your URL
		'data' : request.data,
		'async': request.async,
		'success' : function(data){
			if(request.success){
				request.success(data);
			}
		},
		'error' : function(error){
			if(request.error){
				request.error(error);
			}
		}
	});
}

function searchSubview(subview){
	var url = '';
	switch (subview){
		case '1': url = SEARCH_CATEGORY_1; break;
		case '2': url = SEARCH_CATEGORY_2; break;
		case '3': url = SEARCH_CATEGORY_3; break;
		case 'typeofsize': url = SEARCH_TYPE_OF_SIZE; break;
		case 'productcrotch': url = SEARCH_PRODUCT_CROTCH; break;
		default: break;
	}
	return url;
}

function getSubview(subview){
	var url = '';
	switch (subview){
		case '1': url = GET_CATEGORY_1; break;
		case '2': url = GET_CATEGORY_2; break;
		case '3': url = GET_CATEGORY_3; break;
		case 'typeofsize': url = GET_TYPE_OF_SIZE; break;
		case 'productcrotch': url = GET_PRODUCT_CROTCH; break;
		default: break;
	}
	return url;
}

function addSubview(subview){
	var url = '';
	switch (subview){
		case '1': url = ADD_CATEGORY_1; break;
		case '2': url = ADD_CATEGORY_2; break;
		case '3': url = ADD_CATEGORY_3; break;
		case 'typeofsize': url = ADD_TYPE_OF_SIZE; break;
		case 'productcrotch': url = ADD_PRODUCT_CROTCH; break;
		default: break;
	}
	return url;
}

function updateSubview(subview){
	var url = '';
	switch (subview){
		case '1': url = UPDATE_CATEGORY_1; break;
		case '2': url = UPDATE_CATEGORY_2; break;
		case '3': url = UPDATE_CATEGORY_3; break;
		case 'typeofsize': url = UPDATE_TYPE_OF_SIZE; break;
		case 'productcrotch': url = UPDATE_PRODUCT_CROTCH; break;
		default: break;
	}
	return url;
}

function deleteSubview(subview){
	var url = '';
	switch (subview){
		case '1': url = DELETE_CATEGORY_1; break;
		case '2': url = DELETE_CATEGORY_2; break;
		case '3': url = DELETE_CATEGORY_3; break;
		case 'typeofsize': url = DELETE_TYPE_OF_SIZE; break;
		case 'productcrotch': url = DELETE_PRODUCT_CROTCH; break;
		default: break;
	}
	return url;
}